<?php

use think\migration\Seeder;
use think\facade\Db;

class InsertSystemUser extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run()
    {
        DB::name('system_user')->insertAll([
            [
                'user_id'=>1,
                'user_name'=>'超级管理员',
                'user_code'=>'administrator',
                'user_pwd'=>'b1fae6726c868cc08f0fb945496cc5bf',
                'user_guid' => \base\other\Strings::uuid(),
                'org_id'=>1,
                'is_enable'=>1,
                'is_admin'=>1
            ],
            [
                'user_id'=>2,
                'user_name'=>'管理员',
                'user_code'=>'admin',
                'user_pwd'=>'b1fae6726c868cc08f0fb945496cc5bf',
                'user_guid' => \base\other\Strings::uuid(),
                'org_id'=>1,
                'is_enable'=>1,
                'is_admin'=>1
            ]
        ]);
    }
}